package com.doctcloud.hisinfo.histable.domain.comm;

import com.baomidou.mybatisplus.annotation.TableName;
import com.doctcloud.common.core.annotation.Excel;
import com.doctcloud.common.core.annotation.TableDesc;
import com.doctcloud.common.core.web.domain.BaseCharsetEntity;
import lombok.*;

import javax.validation.constraints.NotBlank;
import java.io.Serializable;

@AllArgsConstructor
@NoArgsConstructor
@ToString
@EqualsAndHashCode(of = {"clinicAttrCode"})
@Data
@TableDesc("科室临床属性字典")
//public class DeptClinicAttrDictDo extends BaseCharsetEntity {
public class DeptClinicAttrDictDo implements Serializable{
    private static final long serialVersionUID = 1L;
    @Excel(name = "序号")
    private Integer serialNo;
    @Excel(name = "临床属性代码")
    @NotBlank(message = "临床属性代码不得为空")
    private Integer clinicAttrCode;
    @Excel(name = "临床属性名称")
    @NotBlank(message = "临床属性名称不得为空")
    private String clinicAttrName;
    @Excel(name = "输入码")
    private String inputCode;
    @Data
    public static class primaryKey {
        private final String clinicAttrCode;
        public primaryKey(String clinicAttrCode) {
            this.clinicAttrCode = clinicAttrCode;
        }
    }
//    public String getClinicAttrName() {
//        return super.processGet(clinicAttrName);
//    }

//    public void setClinicAttrName(String clinicAttrName) {
//        this.clinicAttrName = super.processSet(clinicAttrName);
//    }
}
